package com.hc.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 员工表
 * @author hs
 * @date 2021/05/03
 */
@NoArgsConstructor
@Data
public class Emp {
    private Integer id;
    private String eName;
    private String email;
    /**
     * 0:女   1：男
     */
    private Integer gender;
    private Date date;
    private Dept dept;

    public Emp(Integer id, String eName, String email, Integer gender, Dept dept) {
        this.id = id;
        this.eName = eName;
        this.email = email;
        this.gender = gender;
        this.date = new Date();
        this.dept = dept;
    }
}
